<%--
  Created by IntelliJ IDEA.
  User: Ken
  Date: 2022/4/15
  Time: 9:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>学生列表</title>
    <script src="js/jquery.min.js"></script>

</head>
<body>
    <h1>学生列表</h1>

    <table border="1">
        <tr>
            <th><input type="checkbox"/>全选</th>
            <th>学生编号</th>
            <th>学生姓名</th>
            <th>学生性别</th>
            <th>所属班级</th>
        </tr>

        <c:forEach items="${stus}" var="stu">
            <tr alt="${stu.sort}">
                <td><input type="checkbox"/></td>
                <td>${stu.id}</td>
                <td>${stu.name}</td>
                <td>${stu.sex == 1 ? '男' : '女'}</td>
                <td>${stu.cid}</td>
            </tr>
        </c:forEach>
    </table>

    <!-- 导入一个jsp -->
    <%@include file="page.jsp"%>
</body>
</html>
